// 存放面试题相关请求
// 导入
import request from '@/utils/request'

export function ArticleListAPI ({ current, sorter }) {
  return request.get('/h5/interview/query', {
    params: {
      // 当前页是第几页
      current: current,
      // 显示最新数据还是推荐数据
      sorter: sorter,
      // 每页显示10条数据
      pageSize: 10
    }
  })
}
// 获取详情封装
export function detailAPI (id) {
  return request.get('/h5/interview/show', { params: { id } })
}

// 发送点赞收藏
export const likeAndCollect = (data) => {
  return request.post('/h5/interview/opt', data)
}

// 获取点赞收藏列表
export const getlikeAndCollect = (params) => {
  return request.get('/h5/interview/opt/list', {
    params: params
  })
}
